I am trying to run the following Beanshell code--
assignee.toString()!=''
Here 'assignee' is a variable in Beanshell context.
But I am getting the following error--
Caused by: Sourced file: inline evaluation of: ``assignee.toString()!='';'' Token Parsing Error: Lexical error at line 1, column 23. Encountered: "\'" (39), after : "\'": <at unknown location>
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at bsh.Interpreter.eval(Unknown Source)
at org.webharvest.runtime.scripting.BeanShellScriptEngine.eval(BeanShellScriptEngine.java:104)
What am I doing wrong here? I want to check if the variable 'assignee' has a null value or not... What is the correct way of accomplishing this?
Copyright Notice:Content Author:「Arvind」,Reproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/11236032/token-parsing-error-encountered-in-beanshell